-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.x] Replace GLOB_BRACE
with a more robust solution
#2064
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2064 +/- ##
===========================================
Coverage 100.00% 100.00%
Complexity 1774 1774
===========================================
Files 183 183
Lines 4782 4782
===========================================
Hits 4782 4782 ☔ View full report in Codecov by Sentry. |
8ad38c7
to
34bd942
Compare
I think it makes sense for a file finder to handle file extensions in a case-insensitive manner, especially in scenarios where the target operating system or use case does not enforce case sensitivity. This is particularly important because:
|
I think we should sort the output in the method too to further normalize different file systems. It takes just |
cf72829
to
504d7b0
Compare
Better to have paths relative to the project root to follow the conventions, and how we will use it. Especially since it's a drop in replacement for the smart glob method which is relative to the project. |
3194b94
to
85750da
Compare
Okay, I think this is ready for merge, and assuming the root cause of the two suspected related issues is
To test this, run the following command in your project terminal: composer require hyde/framework:dev-replace-glob-brace-preview Then rerun the reproduction steps that led to your issues. If either of you don't have time to test it, that's totally okay, just let me know. I will be going out of town for a few days and will hold of on merging this until then as I can't properly support a release rollout until the end of the week. |
27a4748
to
16c04b0
Compare
@caendesilva works like a charm |
@sobi3ch Thank you so much for taking the time to test it! I'll be going ahead and merge this, and I will try for a weekend release, if not earlier! |
16c04b0
to
c3a4ffc
Compare
This is as it does not work on all systems
Bools might be more common to put first, but think extension may be more common to use
This reverts commit 50b6ac1.
c3a4ffc
to
b41253e
Compare
GLOB_BRACE
with more robust solutionsGLOB_BRACE
with a more robust solution
Replaces glob brace usages as some Linux distros do not support it, for instance Alpine, which hurts Docker support.
Related issues: (Which this will probably fix)
Will fix #2063